import {Component, OnInit} from '@angular/core';
import {HeaderService} from './shared/header.service';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
  providers: [HeaderService]
})
export class AppComponent implements OnInit {
  title = 'app';
  public show = true;
  constructor(private headerService: HeaderService) {
  }
  ngOnInit(): void {
    this.headerService.getHeaderFlag().subscribe((flag) => {
      this.show = flag;
    });
  }
}
